package demo04;

import java.sql.SQLInput;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public class City {
    static Scanner cc = new Scanner(System.in);

    public static void main(String[] args) {
        System.out.println("请输入省份");

        while (true) {
            HashMap<String, ArrayList<String>> hashMap = new HashMap<>();
            ArrayList arrayList = new ArrayList<>();
            arrayList.add("郑州，洛阳，开封，商丘，");

            ArrayList arrayList2 = new ArrayList<>();
            arrayList2.add("长沙，株洲，张家界，衡阳，");

            ArrayList arrayList3 = new ArrayList<>();
            arrayList2.add("武汉，襄阳，宜昌，黄石，");

            ArrayList arrayList4 = new ArrayList<>();
            arrayList2.add("贵阳市，六盘水，遵义，安顺，");

            hashMap.put("河南", arrayList);
            hashMap.put("湖南", arrayList2);
            hashMap.put("湖北", arrayList3);
            hashMap.put("贵州", arrayList4);

            String next = cc.next();
            ArrayList<String> strings = hashMap.get(next);
            System.out.println(strings);
        }
    }
}